﻿using System;
using ECommerce.Web;
using Machine.Specifications;
using StructureMap;

namespace Service_locator_specs
{
    [Subject("Service locator")]
    public class When_service_locator_has_been_configured
    {
        private static IContainer container;

        Establish context = () => container = Bootstrapper.ConfigureServiceLocator();

        It should_resolve_components_successfully = () =>
            {
                container.AssertConfigurationIsValid();

                Console.WriteLine(container.WhatDoIHave());
            };
    }
}
